/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.scos;

/**
 *
 * @author TruongLQ
 */
public class PromotionSearchCondition {

    Integer promotionID;
    Integer discount;
    String gift;

    public PromotionSearchCondition(Integer promotionID, 
            Integer discount, String gift) {
        this.promotionID = promotionID;
        this.discount = discount;
        this.gift = gift;
    }

    public Integer getPromotionID() {
        return promotionID;
    }

    public void setPromotionID(Integer promotionID) {
        this.promotionID = promotionID;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public String getGift() {
        return gift;
    }

    public void setGift(String gift) {
        this.gift = gift;
    }

    

    public boolean isEmptyCondition() {
        return promotionID==null 
                && discount==null
                && (gift==null||gift.isEmpty());
    }
}
